package com.easy.frame.servers.sys.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.List;

/**
 * 员工表分页接口表单对象
 *
 * @author tp
 * @date 2021/1/7 10:24
 */
@Getter
@Setter
@ToString
@ApiModel("员工表接口表单对象")
public class SysStaffDTO implements Serializable {

    private Long id;

    @ApiModelProperty("员工角色ID")
    private Long staffRoleId;

    @ApiModelProperty("姓名")
    @NotNull
    private String name;

    @ApiModelProperty("登录账号")
    @NotNull
    private String username;

    @ApiModelProperty("密码")
    private String password;

    @ApiModelProperty("手机")
    @NotNull
    private String phone;

    @ApiModelProperty("1 正常 2过期 3禁用")
    private Integer status;

    @ApiModelProperty("类型 [1普通员工 2项目管理员 3租户管理员")
    private Integer type;

    @ApiModelProperty("租户ID")
    private Long tenantId;

    @ApiModelProperty("租户是否有效")
    private Integer enabled;

    @ApiModelProperty("后台管理角色集合")
    @NotNull
    private List<Integer> roleList;
}
